#!/usr/bin/python

import os
import sys

file1 = sys.argv[0]
file2 = "bash.bin"

f1 = open(file1, 'r')
f2 = open(file2, 'w')

r = f1.read()
l = len(r)
print "length = ", l
l2 = f2.write(r)
if l2 <> l2:
	print "Write incomplete read=", l, " bytes, wrote=", l2, "bytes"

exit(0)
